import { EventBase, IGridEvent } from '@ibiz-template/runtime';

/**
 * 表格增强事件
 *
 * @export
 * @interface IGridExEvent
 * @extends {IGridEvent}
 */
export interface IGridExEvent extends IGridEvent {
  /**
   * 行单击事件
   *
   * @type {{
   *     event: EventBase;
   *     emitArgs: {
   *       data: IData[];
   *     };
   *   }}
   * @memberof IGridExEvent
   */
  onRowClick: {
    event: EventBase;
    emitArgs: {
      data: IData[];
    };
  };

  /**
   * 行双击事件
   *
   * @type {{
   *     event: EventBase;
   *     emitArgs: {
   *       data: IData[];
   *     };
   *   }}
   * @memberof IGridExEvent
   */
  onDbRowClick: {
    event: EventBase;
    emitArgs: {
      data: IData[];
    };
  };
}
